Optimal. Leaf size=402 \[ 2 b^2 \sqrt {d-c^2 d x^2}-\frac {2 a b c x \sqrt {d-c^2 d x^2}}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 b^2 c x \sqrt {d-c^2 d x^2} \cosh ^{-1}(c x)}{\sqrt {-1+c x} \sqrt {1+c x}}+\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2-\frac {2 \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2 \text {ArcTan}\left (e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {2 i b \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right ) \text {PolyLog}\left (2,-i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 i b \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right ) \text {PolyLog}\left (2,i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 i b^2 \sqrt {d-c^2 d x^2} \text {PolyLog}\left (3,-i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {2 i b^2 \sqrt {d-c^2 d x^2} \text {PolyLog}\left (3,i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.39, antiderivative size = 402, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 8, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {5926, 5947,
4265, 2611, 2320, 6724, 5879, 75} \begin {gather*} -\frac {2 \sqrt {d-c^2 d x^2} \text {ArcTan}\left (e^{\cosh ^{-1}(c x)}\right ) \left (a+b \cosh ^{-1}(c x)\right )^2}{\sqrt {c x-1} \sqrt {c x+1}}+\frac {2 i b \sqrt {d-c^2 d x^2} \text {Li}_2\left (-i e^{\cosh ^{-1}(c x)}\right ) \left (a+b \cosh ^{-1}(c x)\right )}{\sqrt {c x-1} \sqrt {c x+1}}-\frac {2 i b \sqrt {d-c^2 d x^2} \text {Li}_2\left (i e^{\cosh ^{-1}(c x)}\right ) \left (a+b \cosh ^{-1}(c x)\right )}{\sqrt {c x-1} \sqrt {c x+1}}-\frac {2 a b c x \sqrt {d-c^2 d x^2}}{\sqrt {c x-1} \sqrt {c x+1}}+\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2-\frac {2 i b^2 \sqrt {d-c^2 d x^2} \text {Li}_3\left (-i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {c x-1} \sqrt {c x+1}}+\frac {2 i b^2 \sqrt {d-c^2 d x^2} \text {Li}_3\left (i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {c x-1} \sqrt {c x+1}}+2 b^2 \sqrt {d-c^2 d x^2}-\frac {2 b^2 c x \sqrt {d-c^2 d x^2} \cosh ^{-1}(c x)}{\sqrt {c x-1} \sqrt {c x+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 75
Rule 2320
Rule 2611
Rule 4265
Rule 5879
Rule 5926
Rule 5947
Rule 6724
Rubi steps
\begin {align*} \int \frac {\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2}{x} \, dx &=\frac {\sqrt {d-c^2 d x^2} \int \frac {\sqrt {-1+c x} \sqrt {1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{x} \, dx}{\sqrt {-1+c x} \sqrt {1+c x}}\\ &=\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2-\frac {\sqrt {d-c^2 d x^2} \int \frac {\left (a+b \cosh ^{-1}(c x)\right )^2}{x \sqrt {-1+c x} \sqrt {1+c x}} \, dx}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {\left (2 b c \sqrt {d-c^2 d x^2}\right ) \int \left (a+b \cosh ^{-1}(c x)\right ) \, dx}{\sqrt {-1+c x} \sqrt {1+c x}}\\ &=-\frac {2 a b c x \sqrt {d-c^2 d x^2}}{\sqrt {-1+c x} \sqrt {1+c x}}+\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2-\frac {\sqrt {d-c^2 d x^2} \text {Subst}\left (\int (a+b x)^2 \text {sech}(x) \, dx,x,\cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {\left (2 b^2 c \sqrt {d-c^2 d x^2}\right ) \int \cosh ^{-1}(c x) \, dx}{\sqrt {-1+c x} \sqrt {1+c x}}\\ &=-\frac {2 a b c x \sqrt {d-c^2 d x^2}}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 b^2 c x \sqrt {d-c^2 d x^2} \cosh ^{-1}(c x)}{\sqrt {-1+c x} \sqrt {1+c x}}+\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2-\frac {2 \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2 \tan ^{-1}\left (e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {\left (2 i b \sqrt {d-c^2 d x^2}\right ) \text {Subst}\left (\int (a+b x) \log \left (1-i e^x\right ) \, dx,x,\cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {\left (2 i b \sqrt {d-c^2 d x^2}\right ) \text {Subst}\left (\int (a+b x) \log \left (1+i e^x\right ) \, dx,x,\cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {\left (2 b^2 c^2 \sqrt {d-c^2 d x^2}\right ) \int \frac {x}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{\sqrt {-1+c x} \sqrt {1+c x}}\\ &=2 b^2 \sqrt {d-c^2 d x^2}-\frac {2 a b c x \sqrt {d-c^2 d x^2}}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 b^2 c x \sqrt {d-c^2 d x^2} \cosh ^{-1}(c x)}{\sqrt {-1+c x} \sqrt {1+c x}}+\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2-\frac {2 \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2 \tan ^{-1}\left (e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {2 i b \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right ) \text {Li}_2\left (-i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 i b \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right ) \text {Li}_2\left (i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {\left (2 i b^2 \sqrt {d-c^2 d x^2}\right ) \text {Subst}\left (\int \text {Li}_2\left (-i e^x\right ) \, dx,x,\cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {\left (2 i b^2 \sqrt {d-c^2 d x^2}\right ) \text {Subst}\left (\int \text {Li}_2\left (i e^x\right ) \, dx,x,\cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}}\\ &=2 b^2 \sqrt {d-c^2 d x^2}-\frac {2 a b c x \sqrt {d-c^2 d x^2}}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 b^2 c x \sqrt {d-c^2 d x^2} \cosh ^{-1}(c x)}{\sqrt {-1+c x} \sqrt {1+c x}}+\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2-\frac {2 \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2 \tan ^{-1}\left (e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {2 i b \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right ) \text {Li}_2\left (-i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 i b \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right ) \text {Li}_2\left (i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {\left (2 i b^2 \sqrt {d-c^2 d x^2}\right ) \text {Subst}\left (\int \frac {\text {Li}_2(-i x)}{x} \, dx,x,e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {\left (2 i b^2 \sqrt {d-c^2 d x^2}\right ) \text {Subst}\left (\int \frac {\text {Li}_2(i x)}{x} \, dx,x,e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}\\ &=2 b^2 \sqrt {d-c^2 d x^2}-\frac {2 a b c x \sqrt {d-c^2 d x^2}}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 b^2 c x \sqrt {d-c^2 d x^2} \cosh ^{-1}(c x)}{\sqrt {-1+c x} \sqrt {1+c x}}+\sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2-\frac {2 \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right )^2 \tan ^{-1}\left (e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {2 i b \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right ) \text {Li}_2\left (-i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 i b \sqrt {d-c^2 d x^2} \left (a+b \cosh ^{-1}(c x)\right ) \text {Li}_2\left (i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}-\frac {2 i b^2 \sqrt {d-c^2 d x^2} \text {Li}_3\left (-i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {2 i b^2 \sqrt {d-c^2 d x^2} \text {Li}_3\left (i e^{\cosh ^{-1}(c x)}\right )}{\sqrt {-1+c x} \sqrt {1+c x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.84, size = 449, normalized size = 1.12 \begin {gather*} a^2 \sqrt {d-c^2 d x^2}+a^2 \sqrt {d} \log (c x)-a^2 \sqrt {d} \log \left (d+\sqrt {d} \sqrt {d-c^2 d x^2}\right )+\frac {2 a b \sqrt {d-c^2 d x^2} \left (-c x+\sqrt {\frac {-1+c x}{1+c x}} \cosh ^{-1}(c x)+c x \sqrt {\frac {-1+c x}{1+c x}} \cosh ^{-1}(c x)+i \cosh ^{-1}(c x) \log \left (1-i e^{-\cosh ^{-1}(c x)}\right )-i \cosh ^{-1}(c x) \log \left (1+i e^{-\cosh ^{-1}(c x)}\right )+i \text {PolyLog}\left (2,-i e^{-\cosh ^{-1}(c x)}\right )-i \text {PolyLog}\left (2,i e^{-\cosh ^{-1}(c x)}\right )\right )}{\sqrt {\frac {-1+c x}{1+c x}} (1+c x)}+b^2 \sqrt {d-c^2 d x^2} \left (2+\frac {2 c x \sqrt {\frac {-1+c x}{1+c x}} \cosh ^{-1}(c x)}{1-c x}+\cosh ^{-1}(c x)^2+\frac {i \left (\cosh ^{-1}(c x)^2 \log \left (1-i e^{-\cosh ^{-1}(c x)}\right )-\cosh ^{-1}(c x)^2 \log \left (1+i e^{-\cosh ^{-1}(c x)}\right )+2 \cosh ^{-1}(c x) \text {PolyLog}\left (2,-i e^{-\cosh ^{-1}(c x)}\right )-2 \cosh ^{-1}(c x) \text {PolyLog}\left (2,i e^{-\cosh ^{-1}(c x)}\right )+2 \text {PolyLog}\left (3,-i e^{-\cosh ^{-1}(c x)}\right )-2 \text {PolyLog}\left (3,i e^{-\cosh ^{-1}(c x)}\right )\right )}{\sqrt {\frac {-1+c x}{1+c x}} (1+c x)}\right ) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.10, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \,\mathrm {arccosh}\left (c x \right )\right )^{2} \sqrt {-c^{2} d \,x^{2}+d}}{x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {- d \left (c x - 1\right ) \left (c x + 1\right )} \left (a + b \operatorname {acosh}{\left (c x \right )}\right )^{2}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\mathrm {acosh}\left (c\,x\right )\right )}^2\,\sqrt {d-c^2\,d\,x^2}}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________